<template>
<div>
  {{result}}
</div>
</template>

<script setup >

import {defHttp} from "/@/utils/http/axios";

import {onMounted, ref} from "vue";

const result = ref("")

function getDataFromApi(){

  defHttp.get({url:"/test/news/index"}).then(res=>{
    console.log("=============")
    console.log(res)
    result.value = res
  })
}

onMounted(()=>{
  getDataFromApi()
})



</script>

<style scoped>

</style>
